#!/bin/bash

BRANCH='main-jb'
LOCAL_ROOT='/cygdrive/d/Dev/Android/eagle-android-projs/main-jb/platform'
PATH_REMOTE='ssh://10.193.72.162/proj/repo01/blur_gerrit_mirror/'

REMOTE_APPS[0]='repo/dev/platform/android/motorola/packages/apps/Setup'
LOCAL_APPS[0]='motorola/packages/apps/Setup'

function update_src {
    echo
    echo update $PATHAPP ...
    cd $LOCAL_ROOT/$PATHAPP
    git checkout $BRANCH
    git pull
}

git config --global http.proxy --unset
for var in ${LOCAL_APPS[@]}; do
    PATHAPP=$var
    update_src
done
